import Mock from 'mockjs'

const data = Mock.mock({
  "items|60": [
    {
      id: "@increment",
      name: "@ctitle",
      display_time: "@datetime",
      city: "@county",
      "checked|1": true
    }
  ]
});

export default [
  {
    url: '/vue-admin-template/table/list',
    type: 'get',
    response: config => {
      const items = data.items
      return {
        code: 20000,
        data: {
          total: items.length,
          items: items
        }
      }
    }
  }
]
